package com.lrh.just.po;

import java.io.Serializable;
import java.util.Date;

public class ProdCompeteJnl implements Serializable {
    private Integer competeSeq;

    private String prodId;

    private String openId;

    private Double competeAmt;

    private Date competeDt;

    private static final long serialVersionUID = 1L;

    public Integer getCompeteSeq() {
        return competeSeq;
    }

    public void setCompeteSeq(Integer competeSeq) {
        this.competeSeq = competeSeq;
    }

    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId == null ? null : prodId.trim();
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public Double getCompeteAmt() {
        return competeAmt;
    }

    public void setCompeteAmt(Double competeAmt) {
        this.competeAmt = competeAmt;
    }

    public Date getCompeteDt() {
        return competeDt;
    }

    public void setCompeteDt(Date competeDt) {
        this.competeDt = competeDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProdCompeteJnl other = (ProdCompeteJnl) that;
        return (this.getCompeteSeq() == null ? other.getCompeteSeq() == null : this.getCompeteSeq().equals(other.getCompeteSeq()))
            && (this.getProdId() == null ? other.getProdId() == null : this.getProdId().equals(other.getProdId()))
            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
            && (this.getCompeteAmt() == null ? other.getCompeteAmt() == null : this.getCompeteAmt().equals(other.getCompeteAmt()))
            && (this.getCompeteDt() == null ? other.getCompeteDt() == null : this.getCompeteDt().equals(other.getCompeteDt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCompeteSeq() == null) ? 0 : getCompeteSeq().hashCode());
        result = prime * result + ((getProdId() == null) ? 0 : getProdId().hashCode());
        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
        result = prime * result + ((getCompeteAmt() == null) ? 0 : getCompeteAmt().hashCode());
        result = prime * result + ((getCompeteDt() == null) ? 0 : getCompeteDt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", competeSeq=").append(competeSeq);
        sb.append(", prodId=").append(prodId);
        sb.append(", openId=").append(openId);
        sb.append(", competeAmt=").append(competeAmt);
        sb.append(", competeDt=").append(competeDt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}